<?php
/*

CREATE TABLE resource (
	title varchar not null,
	PRIMARY KEY(id)
)  inherits (tree);

*/
class Agitum_Orm_Resource extends Agitum_Orm_Tree
{
    protected function init() 
    {
        parent::init();

        $this->name = 'resource';
        $this->title = 'Ресурс';
        
        $this->schema['title'] = Agitum_Orm_Attribute::factory(
            Agitum_Orm_Attirbute_Type::String, 
            array(
                'name' => 'title',
                'title' => 'Название',
                'sortOrder' => '90'
            )
        );
    }

}
